package com.api.shopapi.service.impl;

import com.api.shopapi.entity.DishesPlanMorningItem;
import com.api.shopapi.mapper.DishesPlanMorningItemMapper;
import com.api.shopapi.service.DishesPlanMorningItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("DishesPlanMorningItemServiceImplOne")
public class DishesPlanMorningItemServiceImplOne implements DishesPlanMorningItemService {

    @Autowired
    private DishesPlanMorningItemMapper dishesPlanMorningItemMapper;

    @Override
    public
    int insert(DishesPlanMorningItem dishesPlanMorningItem){
        return dishesPlanMorningItemMapper.insert(dishesPlanMorningItem);
    }

    @Override
    public
    int delete(String dishesPlanMorningItemCode){
        return dishesPlanMorningItemMapper.delete(dishesPlanMorningItemCode);
    }

    @Override
    public
    int update( DishesPlanMorningItem dishesPlanMorningItem){
        return dishesPlanMorningItemMapper.update(dishesPlanMorningItem);
    }

    @Override
    public
    DishesPlanMorningItem getByDishesPlanMorningItemCode( String dishesPlanMorningItemCode){
        return dishesPlanMorningItemMapper.getByDishesPlanMorningItemCode(dishesPlanMorningItemCode);
    }

    @Override
    public
    List<DishesPlanMorningItem> ListByDishesPlanMorningCode(String dishesPlanMorningCode){
        return dishesPlanMorningItemMapper.ListByDishesPlanMorningCode(dishesPlanMorningCode);
    }


}
